#include "ConcreteColleagueB.h"

namespace Mediator{
    void ConcreteColleagueB::setMediator(Md *mediator) {
        this->mediator = mediator;
    }

    void ConcreteColleagueB::sendMsg(std::string *msg) {
        std::cout << "concreteColleageB send msg" << std::endl;
        this->mediator->operation(msg);
    }

    void ConcreteColleagueB::receiveMsg() {
        std::cout << "concreteColleageB receive msg" << std::endl;
    }

    std::string ConcreteColleagueB::getName() {
        return "colleagueB";
    }
}
